<p>
  <b>Name:</b>
  <%= h @toilet.name %>
</p>

<p>
  <b>Address:</b>
  <%= h @toilet.address %>
</p>

<p>
  <b>Venuetype:</b>
  <%= h @toilet.venuetype %>
</p>

<p>
  <b>Howtoaccess:</b>
  <%= h @toilet.howtoaccess %>
</p>

<p>
  <b>Changingbench:</b>
  <%= h @toilet.changingbench %>
</p>

<p>
  <b>Hoist:</b>
  <%= h @toilet.hoist %>
</p>

<p>
  <b>Toiletlocation:</b>
  <%= h @toilet.toiletlocation %>
</p>

<p>
  <b>Whocanuse:</b>
  <%= h @toilet.whocanuse %>
</p>

<style type="text/css">
    @import url("http://www.google.com/uds/css/gsearch.css");
</style>
<div id="mapsearch">
  <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
</div>

<!-- Map Search Control and Stylesheet -->
<script type="text/javascript">
    window._uds_msw_donotrepair = true;
</script>
<script src="http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new"
        type="text/javascript"></script>
<style type="text/css">
    @import url("http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css");
</style>

<style type="text/css">
    .gsmsc-mapDiv {
        height: 275px;
    }

    .gsmsc-idleMapDiv {
        height: 275px;
    }

    #mapsearch {
        width: 365px;
        margin: 10px;
        padding: 4px;
    }
</style>
<script type="text/javascript">
    function LoadMapSearchControl() {

        var options = {
            zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL,
            title : "<%= h @toilet.name %>",
            url : "",
            idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM,
            activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM,
            showResultList : GSmapSearchControl.DEFAULT_RESULT_LIST
        }

        var myMapSearchControl = new GSmapSearchControl(
                document.getElementById("mapsearch"),
                "Glasgow",
                options
                );

        myMapSearchControl.execute("Tourist Attractions");
    }

    GSearch.setOnLoadCallback(LoadMapSearchControl);
    GSearch.setOnLoadCallback(LoadMapSearchControl2);

</script>


<%= link_to 'Edit', edit_toilet_path(@toilet) %> |
<%= link_to 'Back', :controller => 'entry', :action => 'index' %>
